using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.Contracts;


namespace FoundationLib.Constraints 
{
	/// <summary>
	/// Exception thrown in case a constraint is violated
	/// </summary>
	public class ConstraintViolatedException : Exception 
	{
		/// <summary>
		/// Creates a new instance
		/// </summary>
		public ConstraintViolatedException() : base("A constraint has been violated.")
		{
		}

		/// <summary>
		/// Creates a new instance
		/// </summary>
		/// <param name="message">The exception message</param>
		public ConstraintViolatedException(string message) : base(message)
		{
		}

	}

}